From 6e4eb83649dbdef4573c6103e2682b8d6052f785 Mon Sep 17 00:00:00 2001 From: "awilliam@xenbuild.aw" Date: Mon, 20 Mar 2006 09:33:38 -0700 Subject: [PATCH] [IA64] correct mistake from previous patch Oops, mis-corrected the previous patch, Kan was correct. Signed-off-by: Alex Williamson --- xen/arch/ia64/xen/vcpu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xen/arch/ia64/xen/vcpu.c b/xen/arch/ia64/xen/vcpu.c index 028660e634..63034b332d 100644 --- a/xen/arch/ia64/xen/vcpu.c +++ b/xen/arch/ia64/xen/vcpu.c @@ -98,10 +98,9 @@ IA64FAULT vcpu_set_gr(VCPU *vcpu, unsigned long reg, UINT64 value, int nat) { REGS *regs = vcpu_regs(vcpu); - long sof; + long sof = (regs->cr_ifs) & 0x7f; if (!reg) return IA64_ILLOP_FAULT; - sof = (regs->cr_ifs) & 0x7f; if (reg >= sof + 32) return IA64_ILLOP_FAULT; setreg(reg,value,nat,regs); // FIXME: handle NATs later return IA64_NO_FAULT; -- 2.30.2